package com.markhsiu.mysql.packet.server;

import com.markhsiu.mysql.packet.MySQLMessage;
import com.markhsiu.mysql.packet.MysqlPacket;
import com.markhsiu.mysql.packet.PacketReadable;

/**
 * 成功的报文处理,INSERT/UPDATE/DELETE AUTH
 * @author Administrator
 *
 */
public class OKPacket extends MysqlPacket  implements PacketReadable{


	/**
	 * 返回包的结果,握手包的结果
	 */
	private byte code = PACKET_OK;

	/**
	 * 行数信息
	 */
	private long affectedRows;

	/**
	 * 插入的id
	 */
	private long insertId;

	/**
	 * 服务状态
	 */
	private int serverStatus;

	/**
	 * 警告的条数
	 */
	private int warningCount;

	/**
	 * 响应信息
	 */
	public byte[] message;
	
	@Override
	public void read(MySQLMessage message) {
		// TODO Auto-generated method stub
		
	}
 

	@Override
	public String descrption() {
		// TODO Auto-generated method stub
		return null;
	}
}
